#!/usr/bin/env bash
mkdir build
cd build
cmake ..
make -j8
mv elf elf_x86
mv libstd.lsd libstd_x86.lsd
lipo -create -output elf elf_x86 elf_arm
lipo -create -output libstd.lsd libstd_x86.lsd libstd_arm.lsd
rm elf_x86 elf_arm libstd_x86.lsd libstd_arm.lsd
file elf
file libstd.lsd
cd ..
